<?php if(!$GLOBALS['user']->uid): ?>
  <div class="modal fade" id="modalLogin" tabindex="-1" role="dialog" aria-labelledby="modalLoginLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <?php $user_login_form = drupal_get_form('user_login'); ?>
          <?php print drupal_render($user_login_form); ?>
        </div>
      </div>
    </div>
  </div>
<?php else: ?>
  <div class="modal fade" id="modalPostLink" tabindex="-1" role="dialog" aria-labelledby="modalPostLinkLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <?php print drupal_render($nip_node_form); ?>
        </div>
      </div>
    </div>
  </div>
<?php endif; ?>
